package 数据写入内存;
import java.util.Scanner;

public class Homework {
        public static void main(String[] args) {
            System.out.println("请输入一个数字字符串：");
            Scanner sc = new Scanner(System.in);
            String str = sc.nextLine();
            byte[] b = str.getBytes();
            int j = 0;
            int o = 0;
            for (int i = 0; i < b.length; i++) {
                if (b[i] % 2 == 0) {
                    o++;
                } else {
                    j++;
                }
            }
            System.out.println("奇数" + j + "\n偶数" + o);
        }
    }

